﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

using Comswing.Website.Models.CommonViewModels;

namespace Comswing.Website.Models.SwingViewModels
{
    public class SwingViewModel
    {
        public SwingViewModel()
        {
            WinnerPercent = Convert.ToDouble(ConfigurationManager.AppSettings["WinnerPercent"]);
            OrganizationPercent = Convert.ToDouble(ConfigurationManager.AppSettings["OrganizationPercent"]);
            ComswingPercent = Convert.ToDouble(ConfigurationManager.AppSettings["ComswingPercent"]);
        }

        public string SwingType { get; set; }

        public int Participants { get; set; }
        public double Prize { get; set; }
        public double EntryValue { get; set; }
        public int DivideNumber { get; set; }
        public DateTime StartedDate { get; set; }
        public DateTime FinishDate { get; set; }
        public double EntryValueInDollars { get; set; }
        public double EntryValueInEuros { get; set; }

        public double WinnerPercent { get; set; }
        public double OrganizationPercent { get; set; }
        public double ComswingPercent { get; set; }

        public List<OrganizationPart> OrganizationParts { get; set; }
    }
}